/**
 * Created by Administrator on 2017/3/28.
 */

import {Injectable} from '@angular/core';
import {HttpService} from "../../util/http/http.service";
import {PromptService} from "../../util/prompt/prompt.service";
@Injectable()
export class TestService {

    constructor(private httpService: HttpService,private promptService:PromptService) {

    }

    test1(): Promise<any> {
        let promise: any = this.httpService.post("/api/test/test1", "")
        return promise.then(function (data: any) {
            return Promise.resolve(data);
        })
    }
}